<?php
	// lay ra comment
    $sql_comment="SELECT * FROM tb_comment where publish=1 ";
	$comment=$lib->selectall($sql_comment);
	if(isset($_POST['btnComment']))
	{
		echo $_POST['btnComment']; die;
		$data=$_POST['data'];
		$data['created']=gmdate('Y-m-d H:i:s', time() +7*3600 );
		$data['publish']=1;
		$lib->insert('tb_comment',$data);	
		
	}

?>